import { RouteRecordRaw } from 'vue-router';
import Layout from '@/views/home/Layout.vue';

export const baseRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: Layout,
    meta: { title: '首页', icon: 'HomeFilled' },
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/home/Dashboard.vue'),
        meta: { title: '表格demo', icon: '' }
      },
      {
        path: 'about',
        name: 'About',
        component: () => import('@/views/home/About.vue'),
        meta: { title: '关于', icon: '' }
      },
      {
        path: 'contact',
        name: 'Contact',
        component: () => import('@/views/home/Contact.vue'),
        meta: { title: '联系我们', icon: '' }
      },
      {
        path: 'form-test',
        name: 'FormTest',
        component: () => import('@/views/test/FormTest.vue'),
        meta: { title: '表单demo', icon: '' }
      }
    ]
  }
];
